# _*_ coding:utf-8 _*_
# @File  : __init__.py.py
# @Time  : 2022-01-10  09:34
# @Author: zizle

# 网页版所有的接口，版本v1

# 菜单授权情况
# admin  用户拥有所有菜单且都能访问
# special用户显示free和vip菜单且都能访问；   接受special菜单分配；
# free   用户显示free和vip菜单且只能访问vip；不接受special菜单分配；
# vip    用户显示free和vip菜单且都能访问；   不接受special菜单分配；

from fastapi import APIRouter
from .A_Client_API import client_router
from .Prod_Service import prod_service_router
from .common import common_api
from .datan import datan_api
from .department_work import department_work_api
from .datalib import edb_datalib_api
from .exchange import exchange_api
from .qhrb import qhrb_api
from .quote import quote_api
from .regular_report import regular_report_api
from .information import information_api
from .ruizhi_config import ruizhi_config_api
from .admin import administrator_router

v1_all_api = APIRouter()
v1_all_api.include_router(client_router, prefix='/client')                # 客户端接口
v1_all_api.include_router(prod_service_router, prefix='/prse')            # 产品服务客户端(申请端)接口
v1_all_api.include_router(common_api, prefix='/ruizy')                    # 系统公用一些数据接口(用户、菜单、品种等)
v1_all_api.include_router(exchange_api, prefix='/exchange')               # 交易所数据
v1_all_api.include_router(datan_api, prefix='/datan')                     # 数据分析接口
v1_all_api.include_router(department_work_api, prefix='/departmentWork')  # 部门工作接口(交易策略、投资方案等)
v1_all_api.include_router(edb_datalib_api, prefix='/datalib')             # 系统自建数据库接口
v1_all_api.include_router(quote_api, prefix='/quote')                     # 行情数据接口
v1_all_api.include_router(qhrb_api, prefix='/qhrb')                       # 期货日报
v1_all_api.include_router(regular_report_api, prefix='/report')           # 日常/常规报告
v1_all_api.include_router(information_api, prefix='/info')                # 信息

v1_all_api.include_router(ruizhi_config_api, prefix='/ruizhiConfig')      # 瑞智配置
v1_all_api.include_router(administrator_router, prefix='/administrator')  # 后台管理

